package com.zt.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName withdrawal
 */
@TableName(value ="withdrawal")
@Data
public class Withdrawal implements Serializable {
    /**
     * 提现id
     */
    @TableId(type = IdType.AUTO)
    private Integer withdrawalId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 提现金额
     */
    private BigDecimal amount;

    /**
     * 提现日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss" , timezone = "GMT+8")
    private Date withdrawalDate;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}